package com.xyh.student.service;

import com.xyh.student.entity.ResponseData;
import com.xyh.student.entity.Teacher;

public interface TeacherService {

    ResponseData queryAllTeacher(Integer pageNum,Integer pageSize);

    ResponseData queryByid(Integer id);

    ResponseData insertTeacher(Teacher teacher);

    ResponseData deleteTeacherByid(Integer id);

    ResponseData deletes(int[] ids);

    ResponseData updateTeacher(Teacher teacher);

    ResponseData numberOfTeachers();

    ResponseData userRegister(Teacher user);
    //该方法处理登录功能
    ResponseData userLogin(String name,String password);
    ResponseData queryUserBypassword(String password);
    ResponseData queryUserByUserName(String name);
}
